package com.binguo.model.mapper;

import com.binguo.model.core.Mapper;
import com.binguo.model.model.Employee;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

public interface EmployeeMapper extends Mapper<Employee> {

    @Select("select count(*) from employee where account = #{account} and shopId = #{shopId}")
    Integer isDoubleEmplyoee(@Param("account") String account, @Param("shopId") Integer shopId);

    @Select("select * from employee where account = #{account} and shopId = #{shopId}")
    Employee selectEmplyoeeByAccount(@Param("account") String account, @Param("shopId") Integer shopId);
}